<template>
  <div v-if="visible">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
      <i class="weui-loading weui-icon_toast"></i>
      <p class="weui-toast__content">{{text}}</p>
    </div>
  </div>
</template>
<script>
export default {
  name: "weui-toast",
  props: {
    text: { type: String, default: "数据加载中" },
    visible: { type: Boolean, default: false }
  }
};
</script>
